package com.slz3.business.module.systemManagement.sysRoleMenu;

import com.slz3.business.module.systemManagement.sysRoleMenu.steward.SysRoleMenuResponse;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

import javax.annotation.Resource;

@Component
@Order(0)
public class SysRoleMenuHandler {

    @Resource
    private SysRoleMenuResponse sysRoleMenuResponse;

    public Mono<ServerResponse> add(ServerRequest req) {
        return sysRoleMenuResponse.add(req);
    }

    public Mono<ServerResponse> info(ServerRequest req) {
        return sysRoleMenuResponse.info(req);
    }

}
